<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">天网行动
    <?php if (in_array($action, array('edit')) && $this->auth->isSingleNetAdd($procData) && !$netList) {?>
    <a class="btn btn-default col-md-offset-10" onclick="newWindow('新增天网行动','<?=printUrl('SingleNet','add', array('procId'=>$procId,'isBubao'=>$isBubao))?>',400,600)">新增</a>
    <?php }?>
  </div>
  <table class="table table-bordered">
    <thead>
      <tr>
        <th class="bg-primary text-center">项目主题</th>
        <th class="bg-primary text-center">标准动作</th>
        <th class="bg-primary text-center">媒体名称</th>
        <th class="bg-primary text-center">发布时间段</th>
        <th class="bg-primary text-center">发布频次</th>
        <th class="bg-primary text-center">预算费用</th>
        <?php if (in_array($action, array('edit'))) {?>
        <th class="bg-primary text-center">操作</th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
    <?php foreach($netList as $k => $v): ?>
      <tr>
        <td class="text-center"><?php echo $v['theme']; ?></td>
        <td class="text-center"><?php echo $v['actionTypeStr']; ?></td>
        <td class="text-center"><?php echo $v['mediaName'] ?></td>
        <td class="text-center"><?php echo $v['startTime'].'至'.$v['endTime'] ?></td>
        <td class="text-center"><?php echo $v['frequency'] ?></td>
        <td class="text-center">
          <?php echo $v['budgetApply'] ?>
          <input type="hidden" name="budgetApply" class="budgetAuditRs" money="<?php echo $v['budgetApply'] ?>" value="1">
        </td>
        <?php if (in_array($action, array('edit'))) {?>
        <td class="text-center">
          <?php if (in_array($v['settleAuditRs'], array(-1,0,3) )) {?>
          <a class="btn btn-default" onclick="newWindow('修改天网行动','<?=printUrl('SingleNet','add', array('id'=>$v['id']))?>',400,600)" role="button">修改</a>
          <a class="btn btn-default" onclick="ajaxConfirmSubmit('您确定要删除此天网行动吗？<br>此操作不可撤销','<?=printUrl('SingleNet','del')?>',{'id':<?=$v['id']?>})">删除</a>
          <?php } ?>
        </td>
        <?php } ?>
      </tr>
    <?php endforeach; ?>
    </tbody>
  </table>
</div>